import {GET,POST,UPLOAD} from '@/services/request'

export default {
    AddressAdd(data = {})
    {
        return POST({
            url:'/business/address/add',
            params:data
        })
    },
    AddressInfo(data={})
    {
      return POST({
        url:'/business/address/info',
        params:data //带参数过去
      })
    },
    AddressIndex(data = {})
    {
      return POST({
        url:'/business/address/index',
        params:data
      })
    },
    AddressEdit(data={})
    {
      return POST({
        url:'/business/address/edit',
        params:data
      })
    },
    AddressDelete(data={})
    {
      return POST({
        url:'/business/address/del',
        params:data
      })
    },
    // 设置默认收货地址
    AddressSelect(data={})
    {
      return POST({
        url:'/business/address/select',
        params:data
      })
    },
    AddressDefault(data = {})
    {
        return POST({
            url:'/business/address/default',
            params:data
        })
    }

}
